import request from '../utils/request'

// 分页查询文章分类
export function articleCategoryList(params) {
  return request({
    url:'/articleCategory/list',
    method:'get',
    params:params
  })
}

// 获取报名的友情链接
export function friendLink(params) {
  return request({
    url:'/article/friend_link',
    method:'get',
    params:params
  })
}

//分页查询文章管理
export function articleList(params) {
  return request({
    url:'/article/list',
    method:'get',
    params:params
  })
}
export function find(params) {
  return request({
    url:'/articleLaud/find',
    method:'get',
    params:params
  })
}
//查询文章详情
export function articleFind(id) {
  return request({
    url:`/article/find/${id}`,
    method:'get',
  })
}

//保存文章管理
export function articleSave(data) { 
  return request({
    url:'/member/article/save',
    method:'post',
    data:data
  })
}


//查询文章评论
export function articleReviewList(params) {
  return request({
    url:"/articleReview/list",
    method:'get',
    params:params
  })
}

//保存文章评论
export function articleReviewSave(data) { 
  return request({
    url:'/member/articleReview/save',
    method:'post',
    data:data
  })
}

